<?php

define('HOME_PATH', realpath(dirname(__FILE__) . '/../'));
define('FRAMEWORK_PATH', HOME_PATH . '/framework');
define('FRAMEWORK_CORE_PATH', HOME_PATH . '/framework/core');
define('FRAMEWORK_REGISTRY_PATH', HOME_PATH . '/framework/registry');

date_default_timezone_set('Europe/Moscow');
mb_internal_encoding('utf-8');
setlocale(LC_ALL, array('ru_RU.UTF-8', 'ru_RU', 'rus_RUS'));
setlocale(LC_NUMERIC, 'C');

require FRAMEWORK_CORE_PATH . '/autoload/Autoload.php';

Autoload::load(FRAMEWORK_CORE_PATH . '/autoload/autoload.conf');

$ErrorCatcher = new ErrorCatcher();
$ErrorCatcher->init();

?>